
<%@page import="com.tn.bo.UserProfile" %>
<%@page import="com.tn.bo.Company" %>
<%@page import="java.util.Date" %>
<%	
	String userId = (String)request.getSession().getAttribute("loggedInUser");
	Company company = (Company)request.getSession().getAttribute("userCompany");
	UserProfile userProfile = (UserProfile)request.getSession().getAttribute("userProfile"); 
	String companyAdmin = (String)request.getSession().getAttribute("companyAdmin");
	Long userProfileId = userProfile.getUserProfileId();
	String preference = (String)request.getSession().getAttribute("viewPreference");
	Date lastLoginTime = (Date)request.getSession().getAttribute("lastLoginTime");
	String lastLoginUser = (String)request.getSession().getAttribute("lastLoginUser");
%>

<script>
var loggedinuser = "<%=userId%>";
var companyAdmin = "<%=companyAdmin%>"
var usrcompany_uid = "<%=company.getCompanyUniqueIdentifier()%>";
var usrcompany_id = "<%=company.getCompanyId()%>";
var preference = "<%=preference%>";
var usrcomp_comapnyId = usrcompany_id;
var usrname = null;
var usrlname = "<%=userProfile.getLastName()%>";
var usrfname = "<%=userProfile.getFirstName()%>";
var usremail = "<%=userProfile.getEmailAddress()%>";
var usrdelinfo  = "<%=userProfile.getDeliveryInfo()%>";
usrname = usrlname + ", " + usrfname;
var usrcompany_name = "<%=company.getCompanyName()%>";
var userProfileIdCache = "<%=userProfile.getUserProfileId()%>";
var llt = "<%=lastLoginTime%>";
var llu = "<%=lastLoginUser%>";

</script>

<div id="modal-dialog-commonmsg" title="Message"
	style="display: none;">
	<table align='left' width="100%">
		<tr>
			<td>
				<span class="alert" id="msg_spn"></span>
			</td>
		</tr>
		<tr>
			<td><img width="5px" height="20px"
				src="/phase2/images/spacer.gif"></td>
		</tr>
		<tr>
			<td><input
				type="button"
				class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only"
				value="Close"
				onclick="javascript:jQuery('#modal-dialog-commonmsg').dialog('close');" />
			</td>
		</tr>
	</table>

</div>